<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    
	</head>
	<body>
		<p class="btn btn-primary btn-block" style="text-align: left;"><a href="<?php echo U('Brand/index')?>">首页&gt;</a><a href=""></a></p>
		<table class="table table-hover">

			<form class="add" action="" method="post">	
			<tr>
				
				<td  width="80">
					修改货品
				</td>
				
					<?php foreach ($arr as $v){?>
						<?php if($v[0]['natype']==1){?>
                
						<td>
							<select name="glvalue[]" class="form-control">
								<option value="">
									请选择<?php echo $v[0]['naname']?>
								</option>
								<?php foreach ($v as $b){?>
								<?php echo $glvalue=$oldData["glvalue"]?>
<option value="<?php echo $b['sid']?>" <?php if(in_array($b["sid"],$glvalue)){?>
                 selected 
               <?php }?>><?php echo $b['shopvalue']?></option>
								<?php }?>
							</select>
						</td>
						
               <?php }?>
					<?php }?>
					<td>
						<input id="exampleInputEmail1" class="form-control" type="text"name="gltotal" value="<?php echo $oldData['gltotal']?>">
					</td>
					<td>
						<input type="hidden" name="glid" value="<?php echo $oldData['glid']?>" />
						<input type="hidden" name="goods_gid" value="<?php echo $oldData['goods_gid']?>"/>
						<input id="exampleInputEmail1" class="form-control" type="text"name="glnum" value="<?php echo $oldData['glnum']?>">
					</td>
					
				
			</tr>
			<tr><td colspan="6"><input type="submit" value="提交修改" class="btn btn-success btn-block"/></td>
				
			</tr>
			</form>
		</table>
		
	</body>
</html>
